package personal.xjl.studentdemo.service;

import personal.xjl.studentdemo.entity.Teacher;

import java.util.List;

public interface TeacherService {
    boolean login(String username, String password);
    public int delete(int id);

    int add(Teacher teacher);

    Teacher selectById(int id);

    void edit(Teacher teacher);

    List<Teacher> selectByPage(int fromIndex, int pageSize);
}
